
// 处理get请求参数
export function requestParameter(obj) {
  if(!obj){
    return ''
  }
  let parameter = '?'
  for (let [key, value] of Object.entries(obj)) {
    parameter += `${key}=${value}&`
  }
  return parameter.substring(0,parameter.length -1 )
}


export function requestPoint(res){
  if (res.code === 200) {
    this.$message.success(res.msg)
  } else {
    this.$message.warning(res.msg)
  }
}